using Nwc.XmlRpc;

public class MoodleRequest : XmlRpcRequest
{
	public string WwwRoot;
	public bool isEncrypted;
	public bool isSigned;
	
	public override MoodleResponse Send(string url)
	{
	
	}
	
	public override String MethodNameObject
	{
		get {
			int index = MethodName.IndexOf("/");

			if (index == -1)
				return MethodName;

			return MethodName.Substring(0,index);
		}
	}

	public override String MethodNameMethod
	{
		get {
			int index = MethodName.IndexOf("/");

			if (index == -1)
				return MethodName;

			return MethodName.Substring(index + 1, MethodName.Length - index - 1);
		}
	}
}